﻿<header>
    <title>VNPT-BSC Login</title>
</header>
<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="login.aspx.cs" Inherits="BSC.login" %>
<%@ Import Namespace="Ext.Net.Utilities" %>
   
<%@ Register assembly="Ext.Net" namespace="Ext.Net" tagprefix="ext" %>
<ext:ResourceManager ID="ResourceManager1" runat="server" />
    <ext:Window 
            ID="Window1" 
            runat="server" 
            Closable="false"
            Resizable="false"
            Height="150" 
            Icon="Lock" 
            Title="Login"
            Draggable="false"
            Width="350"
            Modal="true"
            Padding="5"
            Layout="Form">
            <Items>
                <ext:TextField 
                    ID="txtUsername" 
                    runat="server" 
                    FieldLabel="Tài khoản" 
                    AllowBlank="false"
                    BlankText="Vui lòng nhập tài khoản."
                    />
                <ext:TextField 
                    ID="txtPassword" 
                    runat="server" 
                    InputType="Password" 
                    FieldLabel="Mật khẩu" 
                    AllowBlank="false" 
                    BlankText="Vui lòng nhập mật khẩu."
                    />
            </Items>
            <Buttons>
                <ext:Button ID="btnlogin" runat="server" Text="Login" Icon="Accept">
                    <DirectEvents>
                        <Click OnEvent="login_click">
                            <EventMask ShowMask="true" Msg="Đang xử lý..." MinDelay="1000" />
                            <ExtraParams>
                                <ext:Parameter Name="user" Value="#{txtUsername}.getValue()" Mode="Raw" />
                                <ext:Parameter Name="pass" Value="#{txtPassword}.getValue()" Mode="Raw" />
                            </ExtraParams>
                        </Click>
                    </DirectEvents>
                </ext:Button>
            </Buttons>
        </ext:Window>
